﻿package org.liveboardgames.common.dictionary.enum.errors
{

    /**
     * The <code>EnumError</code> class defines error that can
     * occur while using Enum classes.
     */
    public class EnumError extends Error
    {

        //------------------------------
        //
        // Class members
        //
        //------------------------------

        /**
         * Occurs when trying to compare two enumerations that don't have the same type.
         */
        public static const COMPARE_ERROR_MESSAGE:String = "Enumerations of different type cannot be compared";

        //------------------------------
        //
        // Constructor
        //
        //------------------------------

        /**
         * Constructor.
         *
         * @param message The message to display.
         * @param id The identifier of the error.
         */
        public function EnumError(message:String, id:int = 0)
        {
            super(message, id);
        }


    }

}
